package com.masterclient.app.businessmodule.minemodule.message.adapter;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.eoner.baselibrary.bean.personal.GivingListBean;
import com.masterclient.app.R;

/**
 * @auther hjian
 * @date 2020/3/3.
 */
public class GivingMsgAdapter extends BaseQuickAdapter<GivingListBean.GivingItemBean, BaseViewHolder> {

    public GivingMsgAdapter() {
        super(R.layout.item_giving_msg);
    }

    @Override
    protected void convert(BaseViewHolder helper, GivingListBean.GivingItemBean item) {
        helper.setText(R.id.item_giving_msg_time, item.getCreate_at())
                .setText(R.id.item_giving_msg_title,item.getTitle())
                .setText(R.id.item_giving_msg_desc, item.getSub_title());
    }
}
